import request from '@/utils/request'

// 查询文件审核列表
export function listVerify(query) {
  return request({
    url: '/gs/verify/list',
    method: 'get',
    params: query
  })
}

// 查询文件审核详细
export function getVerify(id) {
  return request({
    url: '/gs/verify/' + id,
    method: 'get'
  })
}

// 新增文件审核
export function addVerify(data) {
  return request({
    url: '/gs/verify',
    method: 'post',
    data: data
  })
}

// 修改文件审核
export function updateP(data) {
  return request({
    url: '/gs/verify/post',
    method: 'put',
    data: data
  })
}
// 修改文件审核
export function updateshare(data) {
  return request({
    url: '/gs/verify/sharepost',
    method: 'put',
    data: data
  })
}
// pdf上传
export function fileUpdate(data) {
  return request({
    url: '/gs/verify/filepost',
    method: 'post',
    data: data
  })
}
// 图片上传
export function picfileUpdate(data) {
  return request({
    url: '/gs/verify/picfilepost',
    method: 'post',
    data: data
  })
}

// 删除文件审核
export function delVerify(id) {
  return request({
    url: '/gs/verify/' + id,
    method: 'delete'
  })
}
